.TH std::function::swap 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::function::swap \- std::function::swap

.SH Synopsis
   void swap( function& other ) noexcept;  \fI(since C++11)\fP

   Exchanges the stored callable objects of *this and other.

.SH Parameters

   other - function wrapper to exchange the stored callable object with

.SH Return value

   \fI(none)\fP

.SH See also

   swap    swaps the targets of two std::move_only_function objects
   (C++23) \fI(public member function of std::move_only_function)\fP
